home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / reformdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-07-23  |  2.1 KB  |  95 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef REFORMDOC_H
  8. #define REFORMDOC_H
  9.  
  10. #include <QLayout>
  11. #include <QCheckBox>
  12. #include <QComboBox>
  13. #include <QRadioButton>
  14. #include <QLabel>
  15. #include <QLineEdit>
  16. #include <QPushButton>
  17. #include <QToolButton>
  18. #include <QColor>
  19.  
  20. #include "scribusapi.h"
  21. #include "scribusstructs.h"
  22. #include "prefsdialogbase.h"
  23.  
  24. class QSpinBox;
  25. class DocSections;
  26. class ScribusDoc;
  27. class ScribusMainWindow;
  28. class TabTypograpy;
  29. class HySettings;
  30. class CMSPrefs;
  31. class ScrSpinBox;
  32. class DocInfos;
  33. class TabGuides;
  34. class TabTools;
  35. class TabCheckDoc;
  36. class TabPDFOptions;
  37. class FontPrefs;
  38. class DocumentItemAttributes;
  39. class TOCIndexPrefs;
  40. class MarginWidget;
  41. class PageLayouts;
  42. class TabDisplay;
  43. class TabDocument;
  44.  
  45.  
  46. class SCRIBUS_API ReformDoc : public PrefsDialogBase
  47. {
  48.     Q_OBJECT
  49.  
  50. public:
  51.     ReformDoc( QWidget* parent, ScribusDoc* doc );
  52.     ~ReformDoc() {};
  53.     
  54.     const int getSelectedUnit();
  55.     const bool imageResolutionChanged();
  56.     const bool colorManagementSettingsChanged();
  57.     void updateDocumentSettings();    
  58.  
  59.     ScribusMainWindow *ScMW;
  60.     ScribusDoc* currDoc;
  61.     int docUnitIndex;
  62.     int decimals;
  63.     double unitRatio;
  64.  
  65. protected:
  66.     QStringList docAttributesList;
  67.     
  68.     TabDocument* tabPage;
  69.     DocInfos* docInfos;
  70.     DocSections* tabDocSections;
  71.     TabGuides* tabGuides;
  72.     TabDisplay* tabView;
  73.     TabTypograpy* tabTypo;
  74.     TabTools* tabTools;
  75.     HySettings* tabHyphenator;
  76.     FontPrefs* tabFonts;
  77.     TabCheckDoc* tabDocChecker;
  78.     CMSPrefs* tabColorManagement;
  79.     TabPDFOptions* tabPDF;
  80.     DocumentItemAttributes* tabDocItemAttributes;
  81.     TOCIndexPrefs* tabTOCIndexPrefs;
  82.     
  83.     bool viewToRecalcPictureRes;
  84.  
  85. protected slots:
  86.     virtual void restoreDefaults();
  87.     virtual void unitChange();
  88.     virtual void setDS(int layout);
  89.     virtual void switchCMS(bool enable);
  90.     virtual void showWidgetInStack(QWidget *widgetToShow);
  91.     virtual void applyChangesButton_clicked();
  92. };
  93.  
  94. #endif // REFORMDOC_H
  95.